import request from '@/utils/request'

// 查询学研订单列表
export function listStudyOrder(query) {
  return request({
    url: '/biz/studyOrder/list',
    method: 'get',
    params: query
  })
}

// 查询学研订单详细
export function getStudyOrder(id) {
  return request({
    url: '/biz/studyOrder/' + id,
    method: 'get'
  })
}

// 新增学研订单
export function addStudyOrder(data) {
  return request({
    url: '/biz/studyOrder',
    method: 'post',
    data: data
  })
}

// 修改学研订单
export function updateStudyOrder(data) {
  return request({
    url: '/biz/studyOrder',
    method: 'put',
    data: data
  })
}

// 删除学研订单
export function delStudyOrder(id) {
  return request({
    url: '/biz/studyOrder/' + id,
    method: 'delete'
  })
}

// 启用禁用学研订单
export function changeStatus(data) {
  return request({
    url: '/biz/studyOrder/changeStatus',
    method: 'put',
    data: data
  })
}